package com.ravi;

import com.ravi.dao.CheckAreaDAO;
import com.ravi.entity.CheckArea;
import com.ravi.vo.AreaRoomVo;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

@SpringBootTest
public class CheckAreaTEST {

	@Autowired
	private CheckAreaDAO checkAreaDAO;

	@Test
	public void setAreaRoomsTest() {
		AreaRoomVo areaRoomVo = checkAreaDAO.getAreaRoomInfoByAreaId(9);
		System.out.println(areaRoomVo);
	}

	@Test
	public void selectOneTEST() {
		CheckArea checkArea = checkAreaDAO.selectCheckAreaById(7);
		System.out.println(checkArea.getAreaName());
		System.out.println(checkArea.getAreaAddress());
		System.out.println(checkArea.getAreaDescription());
	}

}
